<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div>
	<form id="f_team" action="<c:url value='/admin/team/save.do'/>" method="post" enctype="multipart/form-data">
		<input type="hidden" name="team.teamid" value="${team.teamid}">
		<input type="hidden" name="team.createTime" value="${team.createTime}">
		<table id="t_team_detail">
			<tr>
				<th width="75px">组名</th>
				<td>
					<input type="text" name="team.name" value="${team.name}" readonly="readonly"/>
				</td>
			</tr>
			<tr>
			<th width="75px">描述</th>
				<td>
					<textarea id="team_description" name="team.description" rows="150" cols="80" style="width:600px;height:300px"><c:out value="${team.description}"></c:out></textarea>
				</td>
			</tr>
			<tr>
			<th width="75px">当前声明图片</th>
				<td>
					<input type="hidden" name="team.logo" value="${team.logo}" />
					<br/>
					<img alt="xx" src="${ctx}/${team.logo}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">等级</th>
				<td>
					<input type="text" name="team.rank" value="${team.rank}" readonly="readonly"/>
				</td>
			</tr>
			<tr>
			<th width="75px">组人数</th>
				<td>
					<input type="text" name="team.memberCount" value="${team.memberCount}" readonly="readonly"/>
				</td>
			</tr>
			<tr>
			<th width="75px">状态</th>
				<td>
					<select name="team.status">
						<option value="1" <c:if test="${team.status==1}">selected="selected"</c:if>>等待审核</option>
						<option value="2" <c:if test="${team.status==2}">selected="selected"</c:if>>审核未通过</option>
						<option value="3" <c:if test="${team.status==3}">selected="selected"</c:if>>正常</option>
						<option value="4" <c:if test="${team.status==4}">selected="selected"</c:if>>关闭</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width="75px">创建日期</th>
				<td>
					<fmt:formatDate value="${team.createTime}" pattern="yyyy-MM-dd"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>
<div>
<a href="<c:url value='/admin/team/property/view.do?teamid=${team.teamid}'/>">组可见性</a>
<a href="<c:url value='/admin/team/property/share.do?teamid=${team.teamid}'/>">共享组</a>
<a href="<c:url value='/admin/team/property/auth.do?teamid=${team.teamid}'/>">指定用户</a>
<a href="<c:url value='/admin/team/property/applyaudit.do?teamid=${team.teamid}'/>">申请入组是否需要审核</a>
<br/>
<a href="<c:url value='/admin/team/users.do?teamid=${team.teamid}'/>">组成员</a>
</div>